package cn.rkylin.oms.system.dailyTurnoverReport.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.github.pagehelper.PageInfo;

import cn.rkylin.core.IDataBaseFactory;
import cn.rkylin.oms.system.dailyIncomeReport.vo.DailyIncomeReportVO;
import cn.rkylin.oms.system.dailyTurnoverReport.vo.DailyTurnoverReportVO;

@Repository(value = "dailyTurnoverReportDAO")
public class DailyTurnoverReportDAOImpl implements IDailyTurnoverReportDAO{
	
    @Autowired
    protected IDataBaseFactory dao;
    
    private static final String STATEMENT_PAGE_SELECT_BY_CONDITION = "pageSelectDailyTurnoverReport";
    
    /**
     * getDailyTurnoverReport:查询日营业额报表
     */
	@Override
	public PageInfo<DailyTurnoverReportVO> getDailyTurnoverReport(int page, int length,
			DailyTurnoverReportVO dailyTurnoverReportVO) throws Exception {
        return dao.findPage(page, length, STATEMENT_PAGE_SELECT_BY_CONDITION, dailyTurnoverReportVO);
	}

}
